package com.itzz.spring_zhoneHeng.base;


public enum SystemCode {
    OK(1,"ok"),
    AccessTokenError(400,"用户登录令牌失效"),
    UNAUTHORIZED(401,"用户未登录"),
    AuthError(402,"用户名或密码错误"),
    InnerError(500,"系统内部错误"),
    ParameterValidError(501,"参数验证错误"),
    AccessDenied(403,"用户没有权限访问"),
    UpdateError(503,"跟新数据失败");

    private int code;//数据状态码
    private String message;//返回消息

    SystemCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
